All Questions
4 questions
0votes
0answers
499views
scp: Copy files between two servers without routing through my machine
I have two servers server1 and server2. I am able to ssh into both servers from my machine using ssh root@server1 or ssh root@server2 with key login. I want to copy a file from server1 to server2. ...
1vote
1answer
2kviews
Simple restricted scp
I have the requirement to set up some kind of repository that can be read using SCP. Client users shall not be able to see/damage/execute/... anything else. I read through Restricting an SSH/SCP/SFTP ...
1vote
1answer
929views
How to write a file a file via ssh
I want to write a file in the Machine B under /home/test whose permissions are root:root and rwxr-xr-x. I have an account on the Machine B, named testUser. When logged to the Machine B with this ...
1vote
2answers
2kviews
Shell Script - how to scp into remote server and download files and protect password
I have a remote server that I need to download Apache logs from. I can manually scp into the server and get the files, but I'd like to put this in crontab. The only way to automate it is to include ...